.online_code {
  margin: 12px;
  box-sizing: border-box;
  padding: 12px;
  height: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;

  .header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 12px;

    .left_btn_group {
      display: flex;
      column-gap: 5px;
    }

    .detail_info_container {
      display: flex;
      column-gap: 32px;
      flex-wrap: wrap;
      row-gap: 12px;

      .detail_info {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        row-gap: 12px;
        .select_code {
          width: 120px;
          gap: 5px;
        }

        .select_product {
          width: 170px;
          margin-right: 5px;
        }

        .select_template {
          width: 100px;
          margin-right: 12px;
        }

        .page_num {
          min-width: 40px;
          max-width: 60px;
        }

        .text {
          color: #606266;
          height: 28px;
          line-height: 28px;

          .num {
            color: $primaryColor;
          }
        }

        .each_page_code_num {
          margin: 0 8px 0 4px;
        }

        .statistics {
          margin-left: 12px;
        }
      }

      .btn_group {
        display: flex;
        column-gap: 5px;
      }
    }
  }

  .line {
    border-bottom: 1px dotted $dottedLine;
    margin: 12px 0;
  }

  .body {
    flex: 1;
  }
}

.top {
  padding: 12px;
  padding-bottom: 0;

  .main_btn {
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    background: white;
    padding: 10px;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    .add {
      margin-bottom: 5px;
    }

    .module {
      margin-bottom: 5px;
      margin-left: 10px;
      margin-right: 5px;
    }

    .preview {
      margin-bottom: 5px;

      &:nth-child(2) {
        margin-left: 10px;
      }
    }
  }

  .main_input {
    background: white;
    padding: 0 10px 0px 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    .spac_ {
      color: #999;
      font-size: 12px;
      margin-right: 8px;
      margin-bottom: 8px;
    }

    :deep(.el-input-number.is-without-controls .el-input__wrapper) {
      padding: 0 6px;
      height: 28px;
    }

    .mr10 {
      width: 110px;
      margin-right: 8px;
      margin-bottom: 8px;
    }

    .mr10_ {
      width: 170px;
      margin-right: 5px;
      margin-bottom: 8px;
    }

    .mr10_mo {
      width: 100px;
      margin-bottom: 8px;
    }

    .text_print {
      color: #999;
      font-size: 12px;
      margin-right: 8px;
      margin-bottom: 8px;

      .spac {
        margin-left: 6px;
      }

      .page_num {
        min-width: 40px;
        max-width: 60px;
      }
    }
  }
}

.bg_card {
  display: flex;
  justify-content: center;
  align-items: start;
  // overflow: auto;

  .big {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .main {
      display: flex;
      justify-content: flex-start;
      align-content: center;
      flex-wrap: wrap;
      background-color: #fff;

      .cont {
        background-color: #fff;
        outline: 1px solid #ebebeb;

        &::after {
          content: '';
          position: absolute;
          left: auto;
          top: -1px;
          right: 15%;
          height: 1px;
          width: 70%;
          background-color: #fff;
        }

        &::before {
          content: '';
          position: absolute;
          left: auto;
          bottom: -1px;
          right: 15%;
          height: 1px;
          width: 70%;
          background-color: #fff;
        }
      }
    }
  }
}

:deep(.lookshow2) {
  .el-dialog__body {
    padding: 0;
  }
}

:deep(.create-dialog) {
  .cards {
    .card {
      display: flex;
      align-items: center;

      .type {
        margin-left: 15px;
      }

      .number {
        display: flex;
        align-items: center;
        margin-left: 50px;

        .num {
          font-size: 24px;
          color: #007cff;
        }
      }
    }

    .list {
      padding: 0 10px;
      margin-top: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background-color: #f2f2f2;
      border: 1px solid rgba(0, 0, 0, 0.125);

      .name {
        font-weight: bold;
        height: 40px;
        line-height: 40px;
      }

      .text {
        color: #00c0c0;
      }
    }

    .table {
      margin-top: 15px;

      table {
        width: 100%;
        border-collapse: collapse;

        td {
          padding-bottom: 10px;
        }

        th {
          padding: 10px 0;
          text-align: left;
        }

        .part {
          width: 150px;
        }

        .num-inp {
          width: 60px;
        }

        .delete {
          color: #f56c6c;
          cursor: pointer;
        }

        .btn {
          margin-top: 10px;
          height: 28px;
          line-height: 28px;
          padding: 0 10px;
          color: #ffffff;
          font-weight: 400;
          border-radius: 2px;
          border: 1px solid #e5e5e5;
          font-size: 14px;
          background-color: #007cff;
          border-color: #007cff;
          cursor: pointer;
        }
      }
    }
  }

  .btns {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 25px;
    margin-bottom: 10px;
  }
}
